package com.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 图书破损单表
 * </p>
 *
 * @author zhanglin
 * @since 2022-09-16 14:54:20
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("damaged")
public class Damaged implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 报损单 id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 学号或者教师编号（损坏的人）
     */
    @TableField("student_num")
    private String studentNum;

    /**
     * 损坏的图书id
     */
    @TableField("book_id")
    private String bookId;

    /**
     * 图书的编号
     */
    @TableField("book_num")
    private String bookNum;

    /**
     * 损坏描述
     */
    @TableField("describe")
    private String describe;

    /**
     * 损坏时间
     */
    @TableField("damaged_date")
    private LocalDateTime damagedDate;

    /**
     * 经手人（外键）
     */
    @TableField("create_by")
    private String createBy;


}
